package com.oocl.test;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class LoginServlet
 */
public class LoginServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;

    
	public void login(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String username = request.getParameter("loginname");
		String password = request.getParameter("loginpass");
		System.out.println(username);
		System.out.println(password);
		request.setAttribute("username", username);
//		request.setAttribute("method", "test03");
//		request.getRequestDispatcher("third").forward(request, response);
	}
	public void regist(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		System.out.println("这是注册方法");
	}


}
